package mobi.greenplate.theweb.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import java.util.Date;

import mobi.greenplate.theweb.domain.Address;
//for : enum types (and many-to-one)



@XmlRootElement(name = "address")
public class AddressConverter {
    private final Address entity;

    public AddressConverter() {
        this.entity = new Address();
    }

    public AddressConverter(Address entity) {
        this.entity = entity;
    }
    
    @XmlTransient
    public Address getEntity(){
        return entity;
    }

    @XmlElement
    public Long getId() {
        return entity.getId();
    }

    public void setId(Long id) {
        entity.setId(id);
    }
    
    @XmlElement
    public String getCity() {
        return entity.getCity();
    }
    
    public void setCity(String city) {
        entity.setCity(city);
    }
    @XmlElement
    public String getStreet() {
        return entity.getStreet();
    }
    
    public void setStreet(String street) {
        entity.setStreet(street);
    }
    @XmlElement
    public String getZip() {
        return entity.getZip();
    }
    
    public void setZip(String zip) {
        entity.setZip(zip);
    }
    @XmlElement
    public String getState() {
        return entity.getState();
    }
    
    public void setState(String state) {
        entity.setState(state);
    }
    @XmlElement
    public long getLongtitude() {
        return entity.getLongtitude();
    }
    
    public void setLongtitude(long longtitude) {
        entity.setLongtitude(longtitude);
    }
    @XmlElement
    public long getLatitude() {
        return entity.getLatitude();
    }
    
    public void setLatitude(long latitude) {
        entity.setLatitude(latitude);
    }


   
}

